<template>
	<div>
		<app-header />
		<!-- 模块 -->
		<router-view />
		<app-footer />
	</div>
</template>

<script lang="ts">
	import Header from './components/header.vue'
	import Footer from './components/footer.vue'
	import { createApp } from './main'
	export default {
		name: 'happyacomma',
		components: {
			'app-header': Header,
			'app-footer': Footer,
		},
		setup(){
			// const {app,router} = createApp();
			createApp().router.beforeResolve((to,from,next) => {
				if(to.meta.title != ""){
					document.title = "逸曦穆泽_"+to.meta.title;
				}else{
					document.title = "逸曦穆泽_"+to.params.name;
				}
				next();
			}) 
		}
	}
</script>

<style>
	#linze {
		font-family: 'Avenir', Helvetica, Arial, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		color: #2c3e50;background:rgba(188,232,241,.5);
	}
</style>
